package cn.quang.search.admin.enums;

/**
 * 数据类型
 */
public enum EntityTableFieldTypeEnum {
    String(1, "String(字符串)"),
    Integer(2, "Integer(整型)"),
    Long(3, "Long(长整型)"),
    Float(4, "Float(单精度浮点型)"),
    Double(5, "Double(双精度浮点型)"),
    Boolean(6, "Boolean(布尔型)"),
    Date(7, "Date(日期)"),
    Short(8, "Short(短整型)"),
    Byte(9, "Byte(字节型)"),
    Char(10, "Char(字符型)"),
    BigDecimal(11, "BigDecimal"),
    List(12, "List(集合)"),
    Map(13, "Map(哈希表)"),
    Nested(14, "Nested")
    ;

    private final int code;
    private final String name;

    EntityTableFieldTypeEnum(int code, String name) {
        this.code = code;
        this.name = name;
    }

    public int getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

}
